AttachNetworkInterface
Description
The call AttachNetworkInterface appends an ENI to a VPC type ECS instance.
Request Method
POST
Request Path
/apsara/route/Ecs/AttachNetworkInterface
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
InstanceId | BODY | string | Yes | i-bp16qstyvxj9gpqw**** | instance ID. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | ID of the region where the instance is located. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
NetworkInterfaceId | BODY | string | Yes | eni-bp17pdijfczax1huji**** | ENI ID. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}